home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
476-500
/
disk_500
/
wiconify
/
wiconsetter.lzh
/
wIdentify
/
wStubs.a
< prev
Wrap
Text File
|
1991-04-19
|
2KB
|
48 lines
CSECT text
XREF _cOpenWindow
XREF _OldOpenWindow
XREF _cSetWindowTitles
XREF _OldSetWindowTitles
XREF _cOpenScreen
XREF _OldOpenScreen
XDEF _aOpenWindow
XDEF _aSetWindowTitles
XDEF _aOpenScreen
_aOpenWindow:
MOVE.L _OldOpenWindow,A1 ; move old address to A1
JSR (A1) ; JSR to old OpenWindow routine
MOVEM.L D0-D7/A0-A6,-(SP) ; save registers on stack
MOVE.L D0,-(SP) ; push Window pointer
JSR _cOpenWindow ; call our C OpenWindow
ADDQ.L #4,SP ; pop the pointer
MOVEM.L (SP)+,D0-D7/A0-A6 ; restore registers
RTS
_aSetWindowTitles:
MOVEM.L D2-D7/A0-A6,-(SP) ; save registers on stack
MOVE.L A2,-(SP) ; push Screen Title pointer
MOVE.L A1,-(SP) ; push Window Title pointer
MOVE.L A0,-(SP) ; push Window pointer
MOVE.L _OldSetWindowTitles,A3 ; move old address to A3
JSR (A3) ; JMP to old SetWindwoTitles routine
JSR _cSetWindowTitles ; call our C SetWindowTitles
ADD.L #12,SP ; pop the pointers
MOVEM.L (SP)+,D2-D7/A0-A6 ; restore registers
RTS
_aOpenScreen:
MOVE.L _OldOpenScreen,A1 ; move old address to A1
JSR (A1) ; JMP to old OpenScreen routine
MOVEM.L D0-D7/A0-A6,-(SP) ; save registers on stack
MOVE.L D0,-(SP) ; push the new Screen pointer
JSR _cOpenScreen ; call our C OpenScreen
ADDQ.L #4,SP ; pop the pointer
MOVEM.L (SP)+,D0-D7/A0-A6 ; restore registers
RTS
END